<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        *{
            margin: 0px;
            padding: 0px;
        }
        .p1{
            width: 100px;
            height: 100px;
            border-radius: 50px;
            background-color: brown; 
           
            margin: 50px;
            line-height: 100px;
            text-align: center;
            transition: 1s;

           
        }

        div:hover{
            animation: p1 5s;
        }
        
        
        @keyframes p1{
             
                0%   {background: red; left:0px; top:0px;}
    25%  {background: yellow; left:200px; top:0px;}
    50%  {background: blue; left:200px; top:200px;}
    75%  {background: green; left:0px; top:200px;}
    100% {background: red; left:0px; top:0px;}
            }
        .p1:hover{
            
            transform: scale(2) rotate(360deg);
            
           
        }
    </style>
</head>
<body>
    <div class="p1">2iygiuhiss</div>
</body>
</html>